﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using System.IO;

namespace ALE_Server.EC
{
    [Serializable]
    [DataContract]
    public class ECBoundarySpec
    {
        private string m_StartTrigger;
        private string m_StopTrigger;
        private ECTime m_RepeatPeriod;
        private ECTime m_Duration;
        private ECTime m_StableSetInterval;

        [DataMember]
        public string StartTrigger
        {
            get
            {
                return m_StartTrigger;
            }
            set
            {
                m_StartTrigger = value;
            }
        }

        [DataMember]
        public string StopTrigger
        {
            get
            {
                return m_StopTrigger;
            }
            set
            {
                m_StopTrigger = value;
            }
        }

        [DataMember]
        public ECTime RepeatPeriod
        {
            get
            {
                return m_RepeatPeriod;
            }
            set
            {
                m_RepeatPeriod = value;
            }
        }

        [DataMember]
        public ECTime Duration
        {
            get
            {
                return m_Duration;
            }
            set
            {
                m_Duration = value;
            }
        }

        [DataMember]
        public ECTime StableInterval
        {
            get
            {
                return m_StableSetInterval;
            }
            set
            {
                m_StableSetInterval = value;
            }
        }

        public override string ToString()
        {
            return XmlSerializeHelper.Serialize(this);
        }        
    }
}
